import instance from '@/utils/request';

export function getoledScreenapi(data) {
    return instance.request({
        url: "api/IotInfo/GetOledScreen",
        method: "post",
        data
    })
}

export function getoledScreenidapi(data) {
    return instance.request({
        url: "api/IotInfo/GetOledScreenById",
        method: "post",
        data
    })
}

export function addoledScreenapi(data) {
    return instance.request({
        url: "api/IotInfo/PostAddOledScreen",
        method: "post",
        data
    })
}

export function updateoledScreenapi(data) {
    return instance.request({
        url: "api/iotInfo/PutUpdateOledScreen",
        method: "put",
        data
    })
}

export function updateoledScreenTrueapi(data) {
    return instance.request({
        url: "api/iotInfo/PutUpdateOledScreenTrue",
        method: "put",
        data
    })
}

export function updateoledScreenFalseapi(data) {
    return instance.request({
        url: "api/iotInfo/PutUpdateOledScreenFalse",
        method: "put",
        data
    })
}

export function deleteoledScreenapi(data) {
    return instance.request({
        url: "api/iotInfo/DeleteById",
        method: "delete",
        data
    })
}

export function getoledScreenlogapi(data) {
    return instance.request({
        url: "api/IotInfo/GetOledScreenLog",
        method: "post",
        data
    })
}

export function deleteoledScreenlogapi(data) {
    return instance.request({
        url: "api/iotInfo/DeleteByIdLog",
        method: "delete",
        data
    })
}

export function addoledScreenlogapi(data) {
    return instance.request({
        url: "api/IotInfo/PostAddOledScreenLog",
        method: "post",
        data
    })
}
